import java.util.regex.Pattern

import breeze.linalg.min
import util.WubaInfoUtil

/**
  * Created by liuwei on 2017/12/27.
  */
object Maptest2 {




  def main(args: Array[String]): Unit = {
    var selectparam = "\"sorttype\":\"推荐排序\",\"sex\":\"性别不限\",\"jobtype\":\"-\",\"exper\":\"经验不限\""

    val p = Pattern.compile("\"(.*?)\"");

    val m = p.matcher(selectparam)
    //    int i=0;
    while (m.find() ) {
     if(m.group().contains("不限")||m.group().contains("推荐")){
       selectparam = selectparam.replace(m.group(), "\"-\"");
     }


    }
    println(selectparam)
  }

}
